
#include "pin_mux.h"
#include "clock_config.h"
#include "board.h"
#include "fsl_adc.h"
#include "fsl_common.h"



#define voltage_ADC_BASE          	ADC1
#define voltage_ADC_IRQn          	ADC1_IRQn
#define voltage_ADC_USER_CHANNEL  	14U
#define voltage_ADC_CHANNEL_GROUP 	0U
#define voltage_ADC_IRQHandler 		ADC1_IRQHandler


#define current_ADC_BASE          	ADC2
#define current_ADC_IRQn          	ADC2_IRQn
#define current_ADC_USER_CHANNEL  	13U
#define current_ADC_CHANNEL_GROUP 	0U
#define current_ADC_IRQHandler 		ADC2_IRQHandler


void adc_init();
float read_Vadc();
float read_Cadc();
